import React, { Component } from 'react';
import { Card, Col, Row } from 'antd'
import styles from './index.less'
import imgs from '@/assets'
import { history } from 'umi';
class DashboardLeft extends Component {
    render() {
        const is_sw = JSON.parse(localStorage.getItem('userinfo')||'{}').is_sw;
        return (
            <React.Fragment>
                <div className={styles['entry-title']}>
                    <img src={imgs.entry} alt=" " />快捷入口
                </div>
                <Row gutter={10} style={{paddingBottom:40}}>
                    <Col span={6} onClick={()=>history.push(is_sw===1?'/peopleManagement/tzPeoples/:tab':'/peopleManagement/peoples/:tab')}>
                        <div className={styles['dashboard-left-entry']}>
                            <img src={imgs.renyuan} alt=" " />
                            <p>人员管理</p>
                        </div>
                    </Col>
                    <Col span={6} onClick={()=>history.push(is_sw===1?'/tzExamInfo/testPaper/:tab':'/examInfo/testPaper/:tab')}>
                        <div className={styles['dashboard-left-entry']}>
                            <img src={imgs.kaoshi} alt=" " />
                            <p>考试管理</p>
                        </div>
                    </Col>
                    <Col span={6} onClick={()=>history.push('/learn/teachingMterials')}>
                        <div className={styles['dashboard-left-entry']}>
                            <img src={imgs.jiaocai} alt=" " />
                            <p>教材管理</p>
                        </div>
                    </Col>
                    <Col span={6} onClick={()=>history.push('/analyze/practiceAnalyze')}>
                        <div className={styles['dashboard-left-entry']}>
                            <img src={imgs.tongji} alt=" " />
                            <p>统计管理</p>
                        </div>
                    </Col>
                </Row>
            </React.Fragment>
        );
    }
}

export default DashboardLeft;
